<template>
  <div class="goods">
    <goods-item v-for="(item, index) in goods" :goods-item="item" :key="index" class="goods-item"/>
  </div>
</template>
<script>
import GoodsItem from './GoodsItem'
export default {
  name: "Goods",
  components:{ GoodsItem },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  data () {
    return {
    };
  },
  created(){
    // console.log(this.goods)
  }
}
</script>
<style scoped>
  .goods {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 3px;
  }
  .goods-item {
    width: 48%;
  }
</style>